#! /bin/sh

set -e

readonly vultrDir=$(dirname $(realpath $0))

readonly url=https://github.com/vultr/vultr-cli/releases/download/v2.8.0/vultr-cli_2.8.0_linux_64-bit.tar.gz

curl -L $url | tar -xvzf - -C ~/.local/lib/

ln -sf $vultrDir/vultr-cli-wrapper ~/.local/bin/vultr-cli

